package com.gao.qualifiers.specific;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * @author GaoXi
 * @date 2022/2/24 20:44
 */
@Component
public class TestDemo {

    @Autowired
    @Qualifier("you")
    //@Qualifier("specificBean1")
    private SpecificBean specificBean;

    @Override
    public String toString() {
        return "TestDemo{" +
            "specificBean=" + specificBean +
            '}';
    }
}
